﻿namespace PowerSong.Projection
    {
    using System;
    using System.Windows;

    public class Projectlet
        {

        public ProjectletType Type { get; private set; }

        public string Name { get; private set; }

#warning Extend this by adding a delay to the fade

        public TimeSpan FadeOutTime { get; set; }

        public TimeSpan FadeInTime { get; set; }

        public TimeSpan CrossFadeTime { get; set; }

        public Thickness Margin { get; set; }

        internal FrameworkElement Control { get; private set; }

        internal Projectlet(ProjectletType type, string name, FrameworkElement control)
            {
            this.Type = type;
            this.Name = name;
            this.FadeOutTime = new TimeSpan(0, 0, 1);
            this.FadeInTime = new TimeSpan(0, 0, 1);
            this.CrossFadeTime = new TimeSpan(0, 0, 1);
            this.Margin = new Thickness(0);
            this.Control = control;
            }

        }

    }
